<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route as R;

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');


Route::domain('admin.blog.com','admin');
R::domain('newblog.blog.com','home');
Route::domain('admin1.blog.com','admin');

R::domain('admin.fang12345.top','admin');
R::domain('newblog.fang12345.top','home');

//登录页面 (xx.xxx.xxx/admin_login)
\think\facade\Route::rule('admin_login','admin/Login/index');
//登录处理页面
\think\facade\Route::rule('admin_login_ok','admin/Login/login');
//退出登录
\think\facade\Route::rule('admin_login_out','admin/Login/login_out');

return [

];
